function newForm(name,mscrooling){
 if(mscrooling==""||mscrooling==null)mscrooling="auto";
  if(name==""||name==null)name = "frm" + parseInt(Math.random()*100000);
  var ie=(document.all)?true:false;
  var windowType=1,originCenter,originLeft,originTop,originWidth,originHeight,topIndex=0,oSelf,mObject=null,mInterval="";
  var mTop=window.top.document.body;
  this.createForm=function(){
    var s="<div id='"+name+"' style='position:absolute;display:none;top:0;left:0;'>";
    s+=" <div style='position:absolute;'><div id='mask_"+name+"' style='position:absolute;overflow:hidden;'><iframe name='frame_mask_"+name+"' frameborder='0' style='height:100%;width:100%;'></iframe></div></div>";
    s+=" <div id='body_"+name+"' style='position:absolute;top:0;left:0;'>";
    s+="  <div id='"+name+"background' style='position:absolute;'></div>";
    s+="  <div id='"+name+"div1' style='position:absolute;filter:alpha(opacity:0)'><iframe name='frameback_"+name+"' frameborder='0' style='height:100%;width:100%;'></iframe></div>";
    s+="  <div id='"+name+"div2' style='position:absolute;'>";
    for(var j=1;j<=11;j++){s+="    <div id='"+name+"linew"+j+"' style='position:absolute;background-color:#333333;overflow:hidden;'></div>";};
    for(var j=12;j<=16;j++){s+="    <div id='mask_"+name+"linew"+j+"' style='position:absolute;filter:shadow(color=#333333,direction=135);overflow:hidden;'><div id='"+name+"linew"+j+"' style='position:absolute;background-color:#333333;overflow:hidden;'></div></div>";};
    for(var j=17;j<=18;j++){s+="    <div id='mask_"+name+"linew"+j+"' style='position:absolute;filter:shadow(color=#333333,direction=135);overflow:hidden;'><div id='"+name+"linew"+j+"' style='position:absolute;background-color:#ffffff;overflow:hidden;'></div></div>";};
    for(var j=1;j<=5;j++){s+="    <div id='"+name+"lineb"+j+"' style='position:absolute;background-color:#ffffff;overflow:hidden;'></div>";};
    for(var j=1;j<=9;j++){s+="    <div id='"+name+"box"+j+"' style='position:absolute;overflow:hidden;'></div>";};
    for(var j=10;j<=12;j++){s+="    <div id='"+name+"box"+j+"' style='position:absolute;overflow:hidden;background-color:#ffffff;filter:alpha(opacity=1)'></div>";};
    
    s+="    <div id='"+name+"toolbar' style='position:absolute;overflow:hidden;'>";
    for(var j=1;j<=20;j++){s+="      <div id='"+name+"linet"+j+"' style='position:absolute;overflow:hidden;background-color:#ffffff;'></div>";};
    s+="      <div id='"+name+"linet21' style='position:absolute;filter:Alpha(Opacity=44);overflow:hidden;background-color:#ffffff;'></div>";
    s+="      <div id='"+name+"linet22' style='position:absolute;filter:Alpha(Opacity=43);overflow:hidden;background-color:#ffffff;'></div>";
    s+="      <div id='"+name+"linet23' style='position:absolute;filter:Alpha(Opacity=42);overflow:hidden;background-color:#ffffff;'></div>";
    s+="      <div id='"+name+"linet24' style='position:absolute;filter:Alpha(Opacity=41);overflow:hidden;background-color:#ffffff;'></div>";
    s+="      <div id='"+name+"linet25' style='position:absolute;filter:Alpha(Opacity=0,FinishOpacity=40,startX=1,finishX=1,startY=1,finishY=100,Style=1);overflow:hidden;background-color:#ffffff;'></div>";
    s+="      <div id='"+name+"linet26' style='position:absolute;filter:Alpha(Opacity=69);overflow:hidden;background-color:#ffffff;'></div>";
    s+="      <div id='"+name+"linet27' style='position:absolute;filter:Alpha(Opacity=68);overflow:hidden;background-color:#ffffff;'></div>";
    s+="      <div id='"+name+"linet28' style='position:absolute;filter:Alpha(Opacity=67);overflow:hidden;background-color:#ffffff;'></div>";
    s+="      <div id='"+name+"linet29' style='position:absolute;filter:Alpha(Opacity=66);overflow:hidden;background-color:#ffffff;'></div>";
    s+="      <div id='"+name+"linet30' style='position:absolute;filter:Alpha(Opacity=65,FinishOpacity=10,startX=1,finishX=1,startY=1,finishY=100,Style=1);overflow:hidden;background-color:#ffffff;'></div>";
    s+="      <div id='"+name+"toolbar_text' style='position:absolute;overflow:hidden;'></div>";    
    s+="    </div>";
    
    s+="    <div id='"+name+"inbox' style='position:absolute;'>";
    for(var j=1;j<=8;j++){s+="      <div id='"+name+"inbox"+j+"' style='position:absolute;background-color:#eaeaea;overflow:hidden;'></div>";};
    for(var j=9;j<=12;j++){s+="      <div id='"+name+"inbox"+j+"' style='position:absolute;background-color:#666666;overflow:hidden;'></div>";};
    s+="      <div id='"+name+"inbox13' style='position:absolute;background-color:#ffffff;overflow:hidden;'><iframe name='frame_"+name+"' frameborder='0' style='height:100%;width:100%;' scrolling='"+mscrooling+"'></iframe></div>";
    s+="    </div>";
    s+="    <div id='"+name+"textinbox' style='position:absolute;overflow:auto;'></div>";
    s+="    <div id='"+name+"box20' style='position:absolute;overflow:hidden;cursor:hand;'></div>";
    s+="  <div id='btn_"+name+"' style='position:absolute;width:95;height:18;'>";
    for(var j=1;j<=2;j++){s+="    <div id='"+name+"bbox"+j+"' style='position:absolute;background-color:darkblue;filter:Alpha(Opacity=1);overflow:hidden;'></div>";};
    for(var j=3;j<=3;j++){s+="    <div id='"+name+"bbox"+j+"' style='position:absolute;background-color:red;filter:Alpha(Opacity=100,FinishOpacity=40,startX=1,finishX=1,startY=1,finishY=50,Style=2);overflow:hidden;'></div>";};
    for(var j=4;j<=5;j++){s+="    <div id='"+name+"bbox"+j+"' style='position:absolute;background-color:#ffffff;filter:Alpha(Opacity=70,FinishOpacity=40,startX=1,finishX=1,startY=1,finishY=50,Style=1);overflow:hidden;'></div>";};
    for(var j=6;j<=6;j++){s+="    <div id='"+name+"bbox"+j+"' style='position:absolute;background-color:#ffffff;filter:Alpha(Opacity=70,FinishOpacity=40,startX=1,finishX=1,startY=1,finishY=50,Style=1);overflow:hidden;'></div>";};
    for(var j=1;j<=18;j++){s+="    <div id='"+name+"blinec"+j+"' style='position:absolute;background-color:#ebebeb;overflow:hidden;'></div>";};
    for(var j=1;j<=38;j++){s+="    <div id='"+name+"blineb"+j+"' style='position:absolute;background-color:#666666;overflow:hidden;'></div>";};
    for(var j=39;j<=50;j++){s+="    <div id='"+name+"blineb"+j+"' style='position:absolute;background-color:#ffffff;overflow:hidden;'></div>";};
    s+="  </div>";
    s+="  </div>";
    s+=" </div>";
    s+="</div>";
    if(document.readyState=="complete"||document.readyState=="interactive"||document.readyState==""){document.body.insertAdjacentHTML("beforeEnd",s);}else{document.write(s);}
    window.frames["frame_mask_"+name].document.write("<body bgcolor='#000000'>");
    window.frames["frame_mask_"+name].document.close();
  };

  var self=(ie)?document.all[name]:document.getElementById(name);
  if(!self)createForm();
  
  if(ie){var obj=window.top.document.all("webforms_statusbar");}else{var obj=window.top.document.getElementById("webforms_statusbar");};
  if(!obj){
    var s="<div id='webforms_statusdiv' style='position:absolute;left:1;top:"+(mTop.offsetHeight-(mTop.scrollWidth>mTop.clientWidth?50:32))+";TABLE-LAYOUT:fixed;'>";
    s+="  <table border='0' id='webforms_statusbar' cellspacing='1' bgcolor='#ffffff'>";
	s+="    <tr bgcolor='#C0C0C0' height='25'><td id='webforms_statusbar_cell0' style='display:none'>0</td>";
	s+="    </tr>";
    s+=" </table></div>";
    if(window.top.document.readyState=="complete"||window.top.document.readyState=="interactive"||window.top.document.readyState==""){mTop.insertAdjacentHTML("beforeEnd",s);}else{window.top.document.write(s);}
  };

  var self=(ie)?document.all[name]:document.getElementById(name);
  var thisTitle=(ie)?document.all[name+"box20"]:document.getElementById(name+"box20");
  var thisBody=(ie)?document.all["body_"+name]:document.getElementById("body_"+name);
  var thisText=(ie)?document.all[name+"textinbox"]:document.getElementById(name+"textinbox");
  var thisIframe=(ie)?document.all["frame_"+name]:document.getElementById("frame_"+name);
  var thisBackground=(ie)?document.all[name+"background"]:document.getElementById(name+"background");
  var thisContact=(ie)?document.all[name+"div2"]:document.getElementById(name+"div2");
  var thisStatusDiv=(ie)?window.top.document.all["webforms_statusdiv"]:window.top.document.getElementById("webforms_statusdiv");
  var thisStatusBar=(ie)?window.top.document.all["webforms_statusbar"]:window.top.document.getElementById("webforms_statusbar");
  var thisToolBar=(ie)?document.all[name+"toolbar_text"]:document.getElementById(name+"toolbar_text");
  var thisIndex=thisStatusBar.rows[0].cells[0];

  self.backgroundOpacity=85;
  self.textOpacity=100;
  self.maskOpacity=20;
  self.image="";
  self.caption="<font color='darkblue'>New Form</font>";
  self.backgroundColor="#9DBDDB";
  self.titleHeight=25;
  self.toolbarHeight=0;
  self.zIndex=0;
  self.width=400;
  self.height=150;
  self.Left=1;
  self.Top=100;
  self.isModule=false;
  self.autoCenter=true;
  self.minButton=true;
  self.maxButton=true;
  self.closeButton=true;
  self.resizable=true;
  self.movable=true;
  self.frameName="frame_"+name;
  self.frame=thisIframe;
  self.time=0;
  self.titleShade=false;
  self.src="";
  self.background="";
  
  thisTitle.onclick=function(){self.focus();};
  
  self.moveTo=function(x,y){
    if(x==null){x=self.Left;}else{self.Left=x;};
    if(y==null){y=self.Top;}else{self.Top=y};
    thisBody.style.left=x;
    thisBody.style.top=y;
  };
  
  self.resizeTo=function(x,y){
    if(x==null){x=self.width;}else{self.width=x;};
    if(y==null){y=self.height;}else{self.height=y};
    if(ie){
      var f=document.all;
      objRTo(f(name+"linew1"),1,6,1,y-5);
      objRTo(f(name+"linew2"),2,4,2,5);
      objRTo(f(name+"linew3"),3,3,3,3);
      objRTo(f(name+"linew4"),4,2,5,2);
      objRTo(f(name+"linew5"),2,y-4,2,y-3);
      objRTo(f(name+"linew6"),3,y-2,3,y-2);
      objRTo(f(name+"linew7"),4,y-1,5,y-1);
      objRTo(f(name+"linew8"),6,1,x-5,1);
      objRTo(f(name+"linew9"),x-4,2,x-3,2);
      objRTo(f(name+"linew10"),x-2,3,x-2,3);
      objRTo(f(name+"linew11"),x-1,4,x-1,5);
      objRTo(f("mask_"+name+"linew12"),6,y,x+5,y+10);
      objRTo(f(name+"linew12"),0,0,x-10,0);
      objRTo(f("mask_"+name+"linew13"),x,6,x+10,y+5);
      objRTo(f(name+"linew13"),0,0,0,y-10);
      objRTo(f("mask_"+name+"linew14"),x-1,y-4,x+9,y+7);
      objRTo(f(name+"linew14"),0,0,0,1);
      objRTo(f("mask_"+name+"linew15"),x-2,y-2,x+8,y+8);
      objRTo(f(name+"linew15"),0,0,0,0);
      objRTo(f("mask_"+name+"linew16"),x-4,y-1,x+7,y+9);
      objRTo(f(name+"linew16"),0,0,1,0);
      objRTo(f("mask_"+name+"linew17"),x-2,y-3,x+8,y+7);
      objRTo(f(name+"linew17"),0,0,0,0);
      objRTo(f("mask_"+name+"linew18"),x-3,y-2,x+7,y+8);
      objRTo(f(name+"linew18"),0,0,0,0);

      objRTo(f(name+"lineb1"),2,6,2,y-5);
      objRTo(f(name+"lineb2"),3,4,3,5);
      objRTo(f(name+"lineb3"),4,3,5,3);
      objRTo(f(name+"lineb4"),6,2,6,2);
      objRTo(f(name+"lineb5"),7,2,x-5,2);

      objRTo(f(name+"box1"),3,6,3,y-3);
      objRTo(f(name+"box2"),4,4,5,y-2);
      objRTo(f(name+"box3"),6,3,6,y-1);
      objRTo(f(name+"box5"),x-1,6,x-1,y-5);
      objRTo(f(name+"box6"),x-2,4,x-2,y-3);
      objRTo(f(name+"box7"),x-4,3,x-3,y-2);
      objRTo(f(name+"box8"),x-5,3,x-5,y-1);
      objRTo(f(name+"box9"),7,3,x-6,y-1);
      objRTo(f(name+"box10"),x-3,6,x-2,y-6);
      objRTo(f(name+"box11"),7,y-3,x-6,y-2);
      objRTo(f(name+"box12"),x-5,y-5,x-3,y-2);
      objRTo(f(name+"box20"),9,4,x-66,self.titleHeight);
      if(self.image==""){
          f(name+"box20").innerHTML="<table border='0' style='height:100%;width:100%;' cellspacing='0' cellpadding='0'><tr><td>"+self.caption+"</td></tr></table>";
        }else{
          f(name+"box20").innerHTML="<table border='0' style='height:100%;width:100%;' cellspacing='0' cellpadding='0'><tr><td width='1'><img id='"+name+"_ico' src='"+self.image+"' onError='self.style.height=16;self.style.width=16;'></td><td>&nbsp; "+self.caption+"</td></tr></table>";
      };
      objRTo(f(name+"toolbar"),5,self.titleHeight+3,x-4,self.titleHeight+self.toolbarHeight-5);
      objRTo(f(name+"linet1"),6,0,x-15,0);
      objRTo(f(name+"linet2"),6,self.toolbarHeight-8,x-15,self.toolbarHeight-8);
      objRTo(f(name+"linet3"),0,6,0,self.toolbarHeight-14);
      objRTo(f(name+"linet4"),x-9,6,x-9,self.toolbarHeight-14);
      
      objRTo(f(name+"linet5"),4,1,5,1);
      objRTo(f(name+"linet6"),3,2,3,2);
      objRTo(f(name+"linet7"),2,3,2,3);
      objRTo(f(name+"linet8"),1,4,1,5);
      
      objRTo(f(name+"linet9"),x-14,1,x-13,1);
      objRTo(f(name+"linet10"),x-12,2,x-12,2);
      objRTo(f(name+"linet11"),x-11,3,x-11,3);
      objRTo(f(name+"linet12"),x-10,4,x-10,5);
      
      objRTo(f(name+"linet13"),4,self.toolbarHeight-9,5,self.toolbarHeight-9);
      objRTo(f(name+"linet14"),3,self.toolbarHeight-10,3,self.toolbarHeight-10);
      objRTo(f(name+"linet15"),2,self.toolbarHeight-11,2,self.toolbarHeight-11);
      objRTo(f(name+"linet16"),1,self.toolbarHeight-13,1,self.toolbarHeight-12);
      
      objRTo(f(name+"linet17"),x-14,self.toolbarHeight-9,x-13,self.toolbarHeight-9);
      objRTo(f(name+"linet18"),x-12,self.toolbarHeight-10,x-12,self.toolbarHeight-10);
      objRTo(f(name+"linet19"),x-11,self.toolbarHeight-11,x-11,self.toolbarHeight-11);
      objRTo(f(name+"linet20"),x-10,self.toolbarHeight-13,x-10,self.toolbarHeight-12);
      
      objRTo(f(name+"linet21"),6,self.toolbarHeight-9,x-15,self.toolbarHeight-9);
      objRTo(f(name+"linet22"),4,self.toolbarHeight-10,x-13,self.toolbarHeight-10);
      objRTo(f(name+"linet23"),3,self.toolbarHeight-11,x-12,self.toolbarHeight-11);
      objRTo(f(name+"linet24"),2,self.toolbarHeight-13,x-11,self.toolbarHeight-12);
      objRTo(f(name+"linet25"),1,Math.round(self.toolbarHeight/3),x-10,self.toolbarHeight-14);
      
      objRTo(f(name+"linet26"),6,1,x-15,1);
      objRTo(f(name+"linet27"),4,2,x-13,2);
      objRTo(f(name+"linet28"),3,3,x-12,3);
      objRTo(f(name+"linet29"),2,4,x-11,5);
      objRTo(f(name+"linet30"),1,6,x-10,Math.round(self.toolbarHeight/3));
      objRTo(f(name+"toolbar_text"),3,3,x-12,self.toolbarHeight-11);
      
      objRTo(f(name+"inbox"),0,0,x,y);
      objRTo(f(name+"inbox1"),5,self.titleHeight+self.toolbarHeight+4,5,y-6);
      objRTo(f(name+"inbox2"),7,self.titleHeight+self.toolbarHeight+2,x-6,self.titleHeight+self.toolbarHeight+2);
      objRTo(f(name+"inbox3"),x-4,self.titleHeight+self.toolbarHeight+4,x-4,y-6);
      objRTo(f(name+"inbox4"),7,y-4,x-6,y-4);
      objRTo(f(name+"inbox5"),6,self.titleHeight+self.toolbarHeight+3,6,self.titleHeight+self.toolbarHeight+3);
      objRTo(f(name+"inbox6"),x-5,self.titleHeight+self.toolbarHeight+3,x-5,self.titleHeight+self.toolbarHeight+3);
      objRTo(f(name+"inbox7"),6,y-5,6,y-5);
      objRTo(f(name+"inbox8"),x-5,y-5,x-5,y-5);
      objRTo(f(name+"inbox9"),6,self.titleHeight+self.toolbarHeight+4,6,y-6);
      objRTo(f(name+"inbox10"),7,self.titleHeight+self.toolbarHeight+3,x-6,self.titleHeight+self.toolbarHeight+3);
      objRTo(f(name+"inbox11"),x-5,self.titleHeight+self.toolbarHeight+4,x-5,y-6);
      objRTo(f(name+"inbox12"),7,y-5,x-6,y-5);
      objRTo(f(name+"inbox13"),7,self.titleHeight+self.toolbarHeight+4,x-6,y-6);
      objRTo(f(name+"textinbox"),8,self.titleHeight+self.toolbarHeight+4,x-8,y-8);
      objRTo(f(name+"div1"),0,0,x,y);
      objRTo(f(name+"div2"),0,0,x,y);
      objRTo(f(name+"background"),3,3,x-2,y-2);

//Draw Close Button
      objRTo(f(name+"blinec1"),51,0,51,17);
      objRTo(f(name+"blinec2"),53,0,53,16);
      objRTo(f(name+"blinec3"),92,0,92,15);
      objRTo(f(name+"blinec4"),94,0,94,15);
      objRTo(f(name+"blinec5"),54,16,91,16);
      objRTo(f(name+"blinec6"),51,18,91,18);
      objRTo(f(name+"blinec7"),93,16,93,16);
      objRTo(f(name+"blinec8"),92,17,92,17);
      
      objRTo(f(name+"blineb1"),52,17,91,17);
      objRTo(f(name+"blineb2"),93,0,93,15);
      objRTo(f(name+"blineb3"),92,16,92,16);
      objRTo(f(name+"blineb4"),52,0,52,16);
      objRTo(f(name+"blineb5"),67,5,67,5);
      objRTo(f(name+"blineb6"),68,6,68,6);
      objRTo(f(name+"blineb7"),69,7,69,7);
      objRTo(f(name+"blineb8"),70,8,70,9);
      objRTo(f(name+"blineb9"),69,10,69,10);
      objRTo(f(name+"blineb10"),68,11,68,11);
      objRTo(f(name+"blineb11"),67,12,67,12);
      objRTo(f(name+"blineb12"),68,13,71,13);
      objRTo(f(name+"blineb13"),72,12,72,12);
      objRTo(f(name+"blineb14"),73,11,73,11);
      objRTo(f(name+"blineb15"),74,12,74,12);
      objRTo(f(name+"blineb16"),75,13,78,13);
      objRTo(f(name+"blineb17"),79,12,79,12);
      objRTo(f(name+"blineb18"),78,11,78,11);
      objRTo(f(name+"blineb19"),77,10,77,10);
      objRTo(f(name+"blineb20"),76,8,76,9);
      objRTo(f(name+"blineb21"),77,7,77,7);
      objRTo(f(name+"blineb22"),78,6,78,6);
      objRTo(f(name+"blineb23"),79,5,79,5);
      objRTo(f(name+"blineb24"),75,4,78,4);
      objRTo(f(name+"blineb25"),68,4,71,4);
      objRTo(f(name+"blineb26"),72,5,72,5);
      objRTo(f(name+"blineb27"),74,5,74,5);
      objRTo(f(name+"blineb28"),73,6,73,6);
      
      objRTo(f(name+"blineb39"),70,7,76,7);
      objRTo(f(name+"blineb40"),71,8,75,9);
      objRTo(f(name+"blineb41"),70,10,76,10);
      objRTo(f(name+"blineb42"),69,11,72,11);
      objRTo(f(name+"blineb43"),68,12,71,12);
      objRTo(f(name+"blineb44"),75,5,78,5);
      objRTo(f(name+"blineb45"),74,6,77,6);
      objRTo(f(name+"blineb46"),74,11,77,11);
      objRTo(f(name+"blineb47"),75,12,78,12);
      objRTo(f(name+"blineb48"),68,5,71,5);
      objRTo(f(name+"blineb49"),69,6,72,6);
      
      if(self.closeButton){
         objRTo(f(name+"bbox3"),53,0,92,16);
         objRTo(f(name+"bbox6"),53,0,92,7);
         f(name+"bbox3").onmouseover=function(){f(name+"bbox3").style.backgroundColor='darkblue';};
         f(name+"bbox3").onmouseout=function(){f(name+"bbox3").style.backgroundColor='red';};
         f(name+"bbox3").onclick=function(){self.close();};
         f(name+"bbox6").onmouseover=function(){f(name+"bbox3").style.backgroundColor='darkblue';};
         f(name+"bbox6").onmouseout=function(){f(name+"bbox3").style.backgroundColor='red';};
         f(name+"bbox6").onclick=function(){self.close();};
         for(i=1;i<=28;i++){
           f(name+"blineb"+i).onmouseover=function(){f(name+"bbox3").style.backgroundColor='darkblue';};
           f(name+"blineb"+i).onmouseout=function(){f(name+"bbox3").style.backgroundColor='red';};
           f(name+"blineb"+i).onclick=function(){self.close();};
         };
         for(i=39;i<=49;i++){
           f(name+"blineb"+i).onmouseover=function(){f(name+"bbox3").style.backgroundColor='darkblue';};
           f(name+"blineb"+i).onmouseout=function(){f(name+"bbox3").style.backgroundColor='red';};
           f(name+"blineb"+i).onclick=function(){self.close();};
         };
        }else{
         objRTo(f(name+"bbox3"),0,0,0,0);
         objRTo(f(name+"bbox6"),0,0,0,0);
         f(name+"bbox3").onmouseover=function(){};
         f(name+"bbox3").onmouseout=function(){};
         f(name+"bbox3").onclick=function(){};
         f(name+"bbox6").onmouseover=function(){};
         f(name+"bbox6").onmouseout=function(){};
         f(name+"bbox6").onclick=function(){};
         for(i=1;i<=28;i++){
           f(name+"blineb"+i).onmouseover=function(){};
           f(name+"blineb"+i).onmouseout=function(){};
           f(name+"blineb"+i).onclick=function(){};
         };
         for(i=39;i<=49;i++){
           f(name+"blineb"+i).onmouseover=function(){};
           f(name+"blineb"+i).onmouseout=function(){};
           f(name+"blineb"+i).onclick=function(){};
         };
        
      };
      
      if(self.maxButton||self.minButton){
//Draw Max Button
        objRTo(f(name+"blinec9"),26,18,50,18);
        objRTo(f(name+"blinec10"),26,0,26,17);
        objRTo(f(name+"blinec11"),28,0,28,16);
        objRTo(f(name+"blinec12"),29,16,50,16);
      
        objRTo(f(name+"blineb29"),27,17,51,17);
        objRTo(f(name+"blineb30"),27,0,27,16);
        f(name+"blineb31").style.backgroundColor='';
        f(name+"blineb31").style.border='1px solid #666666';
        objRTo(f(name+"blineb31"),33,3,46,13);
        f(name+"blineb32").style.backgroundColor='';
        f(name+"blineb32").style.border='2px solid #ffffff';
        objRTo(f(name+"blineb32"),34,4,45,12);
        f(name+"blineb33").style.backgroundColor='';
        f(name+"blineb33").style.border='1px solid #666666';
        objRTo(f(name+"blineb33"),36,6,43,10);
        if(self.maxButton){
          objRTo(f(name+"bbox2"),28,0,51,16);
          objRTo(f(name+"bbox5"),28,0,51,7);
          f(name+"bbox2").onmouseover=function(){f(name+"bbox2").style.filter="Alpha(Opacity=100,FinishOpacity=40,startX=1,finishX=1,startY=1,finishY=50,Style=2";};
          f(name+"bbox2").onmouseout=function(){f(name+"bbox2").style.filter="alpha(opacity=1)";};
          f(name+"bbox2").onclick=function(){self.max();};
          f(name+"bbox5").onmouseover=function(){f(name+"bbox2").style.filter="Alpha(Opacity=100,FinishOpacity=40,startX=1,finishX=1,startY=1,finishY=50,Style=2";};
          f(name+"bbox5").onmouseout=function(){f(name+"bbox2").style.filter="alpha(opacity=1)";};
          f(name+"bbox5").onclick=function(){self.max();};
          for(i=9;i<=12;i++){
            f(name+"blinec"+i).onmouseover=function(){f(name+"bbox2").style.filter="Alpha(Opacity=100,FinishOpacity=40,startX=1,finishX=1,startY=1,finishY=50,Style=2";};
            f(name+"blinec"+i).onmouseout=function(){f(name+"bbox2").style.filter="alpha(opacity=1)";};
            f(name+"blinec"+i).onclick=function(){self.max();};
          };
          for(i=29;i<=33;i++){
            f(name+"blineb"+i).onmouseover=function(){f(name+"bbox2").style.filter="Alpha(Opacity=100,FinishOpacity=40,startX=1,finishX=1,startY=1,finishY=50,Style=2";};
            f(name+"blineb"+i).onmouseout=function(){f(name+"bbox2").style.filter="alpha(opacity=1)";};
            f(name+"blineb"+i).onclick=function(){self.max();};
          };
         }else{
          objRTo(f(name+"bbox2"),0,0,0,0);
          objRTo(f(name+"bbox5"),0,0,0,0);
          f(name+"bbox2").onmouseover=function(){};
          f(name+"bbox2").onmouseout=function(){};
          f(name+"bbox2").onclick=function(){};
          f(name+"bbox5").onmouseover=function(){};
          f(name+"bbox5").onmouseout=function(){};
          f(name+"bbox5").onclick=function(){};
          for(i=9;i<=12;i++){
            f(name+"blinec"+i).onmouseover=function(){};
            f(name+"blinec"+i).onmouseout=function(){};
            f(name+"blinec"+i).onclick=function(){};
          };
          for(i=29;i<=33;i++){
            f(name+"blineb"+i).onmouseover=function(){};
            f(name+"blineb"+i).onmouseout=function(){};
            f(name+"blineb"+i).onclick=function(){};
          };
        };
        
//Draw Min Button
      objRTo(f(name+"blinec13"),0,0,0,15);
      objRTo(f(name+"blinec14"),2,0,2,15);
      objRTo(f(name+"blinec15"),3,16,25,16);
      objRTo(f(name+"blinec16"),1,16,1,16);
      objRTo(f(name+"blinec17"),2,17,2,17);
      objRTo(f(name+"blinec18"),3,18,25,18);
      
      objRTo(f(name+"blineb34"),1,0,1,15);
      objRTo(f(name+"blineb35"),2,16,2,16);
      objRTo(f(name+"blineb36"),3,17,26,17);
      objRTo(f(name+"blineb37"),8,8,20,13);
      f(name+"blineb38").style.backgroundColor='#ffffff';
      objRTo(f(name+"blineb38"),9,10,19,12);
        if(self.minButton){
          objRTo(f(name+"bbox1"),3,0,26,16);
          objRTo(f(name+"bbox4"),3,0,26,7);
          f(name+"bbox1").onmouseover=function(){f(name+"bbox1").style.filter="Alpha(Opacity=100,FinishOpacity=40,startX=1,finishX=1,startY=1,finishY=50,Style=2";};
          f(name+"bbox1").onmouseout=function(){f(name+"bbox1").style.filter="alpha(opacity=1)";};
          f(name+"bbox1").onclick=function(){self.min();};
          f(name+"bbox4").onmouseover=function(){f(name+"bbox1").style.filter="Alpha(Opacity=100,FinishOpacity=40,startX=1,finishX=1,startY=1,finishY=50,Style=2";};
          f(name+"bbox4").onmouseout=function(){f(name+"bbox1").style.filter="alpha(opacity=1)";};
          f(name+"bbox4").onclick=function(){self.min();};
          for(i=13;i<=18;i++){
            f(name+"blinec"+i).onmouseover=function(){f(name+"bbox1").style.filter="Alpha(Opacity=100,FinishOpacity=40,startX=1,finishX=1,startY=1,finishY=50,Style=2";};
            f(name+"blinec"+i).onmouseout=function(){f(name+"bbox1").style.filter="alpha(opacity=1)";};
            f(name+"blinec"+i).onclick=function(){self.min();};
          };
          for(i=34;i<=38;i++){
            f(name+"blineb"+i).onmouseover=function(){f(name+"bbox1").style.filter="Alpha(Opacity=100,FinishOpacity=40,startX=1,finishX=1,startY=1,finishY=50,Style=2";};
            f(name+"blineb"+i).onmouseout=function(){f(name+"bbox1").style.filter="alpha(opacity=1)";};
            f(name+"blineb"+i).onclick=function(){self.min();};
          };
         }else{
          objRTo(f(name+"bbox1"),0,0,0,0);
          objRTo(f(name+"bbox4"),0,0,0,0);
          f(name+"bbox1").onmouseover=function(){};
          f(name+"bbox1").onmouseout=function(){};
          f(name+"bbox1").onclick=function(){};
          f(name+"bbox4").onmouseover=function(){};
          f(name+"bbox4").onmouseout=function(){};
          f(name+"bbox4").onclick=function(){};
          for(i=13;i<=18;i++){
            f(name+"blinec"+i).onmouseover=function(){};
            f(name+"blinec"+i).onmouseout=function(){};
            f(name+"blinec"+i).onclick=function(){};
          };
          for(i=34;i<=38;i++){
            f(name+"blineb"+i).onmouseover=function(){};
            f(name+"blineb"+i).onmouseout=function(){};
            f(name+"blineb"+i).onclick=function(){};
          };
        };
      };
      
      f("btn_"+name).style.left=x-102;
      f("btn_"+name).style.top=3;
      
    };
    if(self.autoCenter){self.moveTo((mTop.clientWidth-self.width)/2,(mTop.clientHeight-self.height)/2)}else{self.moveTo();};
    if(ie){var obj=document.all(name+"_ico");}else{var obj=document.getElementById(name+"_ico");};
    if(obj){obj.onclick=function(){self.reload();};};
  };

  this.objRTo=function(f,l,t,x,y){
    if(x>=l&&y>=t){
      f.style.left=l;
      f.style.top=t;
      f.style.width=x-l+1;
      f.style.height=y-t+1;
    };
  };
  
  self.setBackgroundOpacity=function(mOpacity,mtype){
    if(mOpacity!=null&&mtype!=0)self.backgroundOpacity=mOpacity;
    if(ie){thisBackground.style.filter="alpha(opacity="+mOpacity+")";}else{thisBackground.style.filter="-moz-opacity:"+mOpacity/100+")";};
    for(var j=1;j<=9;j++){
      if(ie){
          var f=document.all(name+"box"+j);
          f.style.filter="alpha(opacity="+mOpacity+")";
        }else{
          var f=document.getElementById(name+"box"+j);
          f.style.filter="-moz-opacity:"+mOpacity/100+")";
      };      
    };
    for(var j=1;j<=5;j++){
      if(ie){
          var f=document.all(name+"lineb"+j);
          f.style.filter="alpha(opacity="+mOpacity+")";
        }else{
          var f=document.getElementById(name+"lineb"+j);
          f.style.filter="-moz-opacity:"+mOpacity/100+")";
      };      
    };
  };
  
  self.setTextOpacity=function(mOpacity){
    if(mOpacity!=null)self.textOpacity=mOpacity;
    if(ie){
        var f=document.all(name+"inbox");
        f.style.filter="alpha(opacity="+self.textOpacity+")";
      }else{
        var f=document.getElementById(name+"inbox");
        f.style.filter="-moz-opacity:"+self.textOpacity/100+")";
    };
  };
  
  self.setBackgroundColor=function(mColor){
    if(mColor!=""&&mColor!=null)self.backgroundColor=mColor;
    for(var j=1;j<=9;j++){
      if(ie){var f=document.all(name+"box"+j);}else{var f=document.getElementById(name+"box"+j);};
      f.style.backgroundColor=self.backgroundColor;
    };
    for(var j=1;j<=20;j++){
      if(ie){var f=document.all(name+"linet"+j);}else{var f=document.getElementById(name+"linet"+j);};
      f.style.backgroundColor=self.backgroundColor;
    };
  };
  
  self.setModuleON=function(mOpacity){
    if(mOpacity==null)mOpacity=self.maskOpacity;
    if(ie){var m=document.all("mask_"+name),f=document.all("frame_mask_"+name);}else{var m=document.getElementById("mask_"+name),f=window.frames["frame_mask_"+name];};
    if(m){
      if(f){
        m.style.left="0px";
        m.style.top="0px";
        m.style.width=mTop.offsetWidth>mTop.scrollWidth?mTop.offsetWidth-22:mTop.scrollWidth;
        m.style.height=mTop.offsetHeight>mTop.scrollHeight?mTop.offsetHeight-5:mTop.scrollHeight;
        if(ie){m.style.filter="alpha(opacity="+mOpacity+")";}else{m.style.filter="-moz-opacity:"+mOpacity/100+")";};
      };
    };
  };
  
  self.setModuleOFF=function(){
    if(ie){var m=document.all("mask_"+name);}else{var m=document.getElementById("mask_"+name);};
    if(m){m.style.width=0;m.style.height=0;};
  };
  
  self.loadText=function(mText){
    if(mText!=""&&mText!=null){
	  thisText.innerHTML=mText;
	  thisText.style.display="block";
	  thisIframe.src="";
    };
  };
  
  self.loadTextFrom=function(mobj){
    if(mobj){
      thisText.innerHTML=mobj.innerHTML;mobj.removeNode(true);
	  thisText.style.display="block";
	  thisIframe.src="";
    };
  };
  
  self.loadToolbarText=function(mText){
    if(mText!=""&&mText!=null){
	  thisToolBar.innerHTML=mText;
    };
  };
  
  self.loadToolbarTextFrom=function(mobj){
    if(mobj){
      thisToolBar.innerHTML=mobj.innerHTML;mobj.removeNode(true);
    };
  };  

  self.setScrollBarON=function(){
    thisText.style.overflow="auto";
  };
  
  self.setScrollBarOFF=function(){
    thisText.style.overflow="hidden";
  };
  
  self.dragWindow=function(){
     if(thisTitle){
       thisTitle.onmousedown=function(){if(self.movable)self.MouseDown(this,thisBody);};
       thisTitle.onmousemove=function(){if(self.movable)self.mMouseMove();};
       thisTitle.onmouseup=function(){if(self.movable)self.MouseUp();};
     };
   };
   
  self.resizeWindow=function(){
    if(ie){var f=document.all(name+"box10");}else{var f=document.getElementById(name+"box10");};
    if(self.resizable){f.style.cursor="e-resize";}else{f.style.cursor="default";};
    f.onmousedown=function(){if(self.resizable){self.autoCenter=false;self.MouseDown(this,thisBody);};};
    f.onmousemove=function(){if(self.resizable)self.rMouseMove(10);};
    f.onmouseup=function(){if(self.resizable)self.MouseUp();};
    f.onclick=function(){self.focus();};
       
    if(ie){var f=document.all(name+"box11");}else{var f=document.getElementById(name+"box11");};
    if(self.resizable){f.style.cursor="n-resize";}else{f.style.cursor="default";};
    f.onmousedown=function(){if(self.resizable){self.autoCenter=false;self.MouseDown(this,thisBody);}};
    f.onmousemove=function(){if(self.resizable)self.rMouseMove(11);};
    f.onmouseup=function(){if(self.resizable)self.MouseUp();};
    f.onclick=function(){self.focus();};
       
    if(ie){var f=document.all(name+"box12");}else{var f=document.getElementById(name+"box12");};
    if(self.resizable){f.style.cursor="nw-resize";}else{f.style.cursor="default";};
    f.onmousedown=function(){if(self.resizable){self.autoCenter=false;self.MouseDown(this,thisBody);}};
    f.onmousemove=function(){if(self.resizable)self.rMouseMove(12);};
    f.onmouseup=function(){if(self.resizable)self.MouseUp();};
    f.onclick=function(){self.focus();};
  };
  
  self.min=function(){
     self.hide();
     var cell=thisStatusBar.rows(0).insertCell();
     cell.innerHTML="<span style='width:150;float:left;white-space: nowrap;overflow: hidden;'><img src='"+self.image+"' height='16'align='absmiddle' onerror=\"self.src='';\"> "+self.caption+"</span>";
     cell.id="status_"+name;
     cell.style.width=150;
     cell.style.borderLeft="1px solid #FFFFFF";
     cell.style.borderTop="1px solid #FFFFFF";
     cell.style.borderBottom="1px solid #666666";
     cell.style.borderRight="1px solid #666666";
     cell.style.cursor="hand";
     cell.style.fontSize="12px"
     cell.noWrap=1;
     cell.onclick=function(){self.open();};
  };
  
  self.open=function(){
     var thisStatus=(ie)?window.top.document.all["status_"+name]:window.top.document.getElementById("status_"+name);
     if(thisStatus){
       thisStatus.removeNode(true);
       self.show();
     };
  };
  
  self.max=function(){
    if(windowType==2){
        self.autoCenter=originCenter;
        self.resizeTo(originWidth,originHeight);
        self.moveTo(originLeft,originTop);
        windowType=1;
      }else{
        windowType=2;
        originCenter=self.autoCenter;
        originLeft=self.Left;
        originTop=self.Top;
        originWidth=self.width;
        originHeight=self.height;
        thisBody.style.top=0;
        self.resizeTo(window.document.body.offsetWidth-35,window.document.body.offsetHeight-20);
        self.moveTo(0,0);
    };
  };
  
  self.hide=function(){
    self.style.display="none";
  };
  
  self.release=function(){
    thisIframe.removeNode(true);
    self.removeNode(true);
  };
    
  self.close=function(){
    self.release();
  };
  
  self.reload=function(){
    if(thisIframe.src!="")thisIframe.src=thisIframe.src;
  };
  
  self.focus=function(){
    if(self.style.zIndex>=thisIndex.innerText){
        thisIndex.innerText=parseInt(self.style.zIndex)+1;
       }else{
        self.style.zIndex=parseInt(thisIndex.innerText);
        thisIndex.innerText=parseInt(thisIndex.innerText)+1;
     };
  };
  
  self.setScrollON=function(){
    document.body.onscroll=function(){
      thisBody.style.left=mTop.scrollLeft+self.Left;
      thisBody.style.top=mTop.scrollTop+self.Top;
      thisStatusDiv.style.top=mTop.scrollTop+mTop.offsetHeight-(mTop.scrollWidth>mTop.clientWidth?50:32);
    };
  };
  
  self.setScrollOFF=function(){
    document.body.onscroll=function(){
      thisStatusDiv.style.top=mTop.scrollTop+mTop.offsetHeight-(mTop.scrollWidth>mTop.clientWidth?50:32);
    };
  };
  
  self.slowShow=function(){
    if(self.time<self.backgroundOpacity){self.time+=10;}else{window.clearInterval(mInterval);};
    self.setBackgroundOpacity(self.time,0);
  };
  
  self.show=function(isDisplay){
    if(isDisplay==false)isDisplay=false;else isDisplay=true;
    if(!self.resizable)self.maxButton=false;
    self.setBackgroundColor();
    self.setTextOpacity();
    self.resizeTo();
    if(windowType==2)self.moveTo(0,0);
    if(self.isModule){self.setModuleON();}else{self.setModuleOFF();};
    if(self.src!=""&&thisIframe.src!=self.src){
        thisIframe.src=self.src;
        thisText.style.display="none";
      }else{
        if(self.src==""){thisText.style.display="block";};
    };
    if(self.zIndex!=0)self.style.zIndex=self.zInde;
    if(self.style.zIndex>=thisIndex.innerText)thisStatusBar.tabIndex=parseInt(self.style.zIndex)+1;
    thisBackground.style.backgroundImage="url('"+self.background+"')";
    self.setScrollOFF();
    self.focus();
	if(self.titleShade){
        self.time=0;
        self.setBackgroundOpacity(0,0);
        self.style.display="block";
        mInterval=window.setInterval(name+".slowShow()",10)
      }else{
        self.setBackgroundOpacity(self.backgroundOpacity);
        if(isDisplay)self.style.display="block";
    };
  };
  
  self.MouseDown=function(ome,obj){
    oSelf=ome;
    mObject=obj;
    oSelf.setCapture();
    mObject.l=event.x-mObject.style.pixelLeft;
    mObject.t=event.y-mObject.style.pixelTop;
    mObject.x=event.x;
    mObject.y=event.y;
    mObject.w=self.width;
    mObject.h=self.height;
  };

  self.mMouseMove=function(){
    if(mObject!=null&&event.y>0){
      mObject.style.left=event.x-mObject.l;
      mObject.style.top=event.y-mObject.t;
	  self.Left=mObject.style.left;
	  self.Top=mObject.style.top;
    };
  };

  self.rMouseMove=function(i){
    if(mObject!=null){
      mObject.nw=mObject.w;mObject.nh=mObject.h;
      if(i==10||i==12)mObject.nw=mObject.w+event.x-mObject.x;
      if(i==11||i==12)mObject.nh=mObject.h+event.y-mObject.y;
      if(mObject.nw<200)mObject.nw=200;
      if(mObject.nh<(self.titleHeight+30))mObject.nh=self.titleHeight+30;
      self.resizeTo(mObject.nw,mObject.nh);
	  self.width=mObject.nw;
	  self.height=mObject.nh;
	  window.status='width='+self.width+'--height='+ self.height;
    };
  };
  
  self.MouseUp=function(){
    if(mObject!=null){
      oSelf.releaseCapture();
      mObject=null;
    };
  };
  
  self.loadJavascript=function(cmdstring){
    if(cmdstring!=""){
       var s=document.createElement("SCRIPT")
       s.text=cmdstring;
       thisIframe.document.body.insertAdjacentElement("beforeBegin", s);
    };
  };
  
  self.correctPNG=function(){ 
    for(var i=0; i<document.images.length; i++) 
    { 
      var img = document.images[i] 
      var imgName = img.src.toUpperCase() 
      if (imgName.substring(imgName.length-3, imgName.length) == "PNG") 
       { 
         var imgID = (img.id) ? "id='" + img.id + "' " : "" 
         var imgClass = (img.className) ? "class='" + img.className + "' " : "" 
         var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " 
         var imgStyle = "display:inline-block;" + img.style.cssText  
         if (img.align == "left") imgStyle = "float:left;" + imgStyle 
         if (img.align == "right") imgStyle = "float:right;" + imgStyle 
         if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle         
         var strNewHTML = "<span " + imgID + imgClass + imgTitle 
         + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 
         + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" 
         + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>"  
         img.outerHTML = strNewHTML 
         i = i-1 
       } 
    } 
  } 
  
  //self.correctPNG();
  self.dragWindow();
  self.resizeWindow();
  return self;
};

function msgbox(msg,mcolor,ttlmsg){
  var errmsg="";
  errmsg+="<div style='position:absolute; filter:alpha(opacity:60); left:0px; top:0px; width: 100%; height: 100% ; background-color: #ffffff'></div>";
  errmsg+="<div style='position:absolute; left:0px; top:0px; width: 100%; height: 100% ; '>";
  errmsg+="	<table border='0' style='width:100%;height:100%;' cellspacing='0' cellpadding='0'>";
  errmsg+="		<tr>";
  errmsg+="			<td width='20%' align='center'><img src='images/warning.gif'></td>";
  errmsg+="			<td width='77%' align='left'>" + msg + "</td>";
  errmsg+="		</tr>";
  errmsg+="		<tr height='30'>";
  errmsg+="			<td colspan='2' align='center'><input type='button' name='B1' value=' &#30830;  &#23450; ' onclick='sys_messagebox.release();'></td>";
  errmsg+="		</tr>";
  errmsg+="	</table>";
  errmsg+="</div>";

  if(!document.all("sys_messagebox")){
    newForm("sys_messagebox");
  }
  if(mcolor==""||mcolor==null)mcolor="#666666";
  sys_messagebox.movable=true;
  sys_messagebox.backgroundColor=mcolor;
  sys_messagebox.backgroundOpacity=80;
  sys_messagebox.background="images/background2.jpg";
  sys_messagebox.image="images/wmv.gif";
  sys_messagebox.width=450;
  sys_messagebox.height=150;
  sys_messagebox.src="";
  sys_messagebox.textOpacity=0;
  sys_messagebox.maskOpacity=1; 
  sys_messagebox.minButton=false;
  sys_messagebox.maxButton=false;
  if(ttlmsg==""||ttlmsg==null){
      sys_messagebox.caption="<font color='red'>&#38169;&#35823;&#20449;&#24687;</font>";
  }else{
      sys_messagebox.caption=ttlmsg;
  }
  sys_messagebox.isModule=true;
  sys_messagebox.titleHeight=25;
  sys_messagebox.loadText(errmsg);
  sys_messagebox.show();
}
